package com.szrt.java.day20161230.demo04;

/**
 * Student04 子类
 * Person04  父类
 * 
 * extends 关键字 表示继承
 * 
 * 子类会继承父类的public方法 4个
 * 
 * @author zsrt
 *
 */
public class Student04 extends Person04{
	
	private String school;

	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	
	@Override
	public String toString() {
		return "Student04 [school=" + school +" name="+super.getName()+" age="+super.getAge()+"]";
	}
	
	
	

}
